{% extends "base_views.html" %}

{% block title %}Search results{% endblock %}

{% block content %}
<table id="hor-zebra">
	<thead>
		<tr>
			<th scope="col" class="center" width="15px"></th>
			<th scope="col">Name</th>
			<th scope="col" width="55px">FORK ID</th>
			<th scope="col" width="90px">Brand</th>
			<th scope="col" width="90px" class="center">Internal Brand</th>
			<th scope="col" width="90px"  class="center">Item Group</th>
			<th socpe="col" width="30px" class="center"></th>
		</tr>
	</thead>
	<tbody>

{% for entry in found_entries %}
		<tr class="{% if forloop.counter|divisibleby:2 %}even{% else %}odd{% endif %}">
			<td class="display_icon"><span class="status_{{entry.status}}" /></td>
			<td><a href="/vod/item/{{entry.id}}">{{ entry.name }}</a></td>
			<td>{{entry.mam_id}}</td>
			<td>{{entry.brand}}</td>
			<td class="center">{{ entry.internal_brand }}</td>
			<td class="center">{{ entry.group }}</td>
			<td><a href="/admin/Packager_app/item/{{entry.id}}">ADMIN</a></td>
		</tr>
{% endfor %}
	</tbody>
</table>
<!-- VIEW'S ICONOGRAPHY -->
<table id="tblIconography">
	<tr>
		<td class="tdIconographyIcon" title="New item from Fork">
			<img src="/images/icons/new.png"></td><td class="tdIconographyDesc">New
		</td>
		<td class="tdIconographyIcon" title="Processing item">
			<img src="/images/icons/time.png"></td><td class="tdIconographyDesc">Processing
		</td>
		<td class="tdIconographyIcon" title="Item done">
			<img src="/images/icons/tick.png"></td><td class="tdIconographyDesc">Done
		</td>
		<td class="tdIconographyIcon" title="Item error">
			<img src="/images/icons/exclamation.png"></td><td class="tdIconographyDesc">Warning
		</td>
		<td width="99%"></td>
	<tr>
</table>
{% endblock %}

{% block action_bar %}

{% if packages.has_previous %}
<a href="?page={{ packages.previous_page_number }}" class="bttn prev">Previous</a>
{% endif %}
<a href="#" onclick="javascript:actionViewEntry('/vod/item');" class="bttn icon view">View</a>
<a href="#" onclick="javascript:actionRefreshView();" class="bttn icon refresh">Refresh<a>
{% if packages.has_next %}
<a href="?page={{ packages.next_page_number }}" class="bttn next">Next</a>
{% endif %}

{% endblock %}